package com.company.wushuo.justfortest.reactive.subscription;


import com.company.wushuo.justfortest.reactive.Subscription;


/**
 *
 * Created by wushuo on 2021/4/4.
 */

public class Subscriptions {
    private static final Unsubscribed UNSUBSCRIBED = new Unsubscribed();

    public static Subscription unsubscribed() {
        return UNSUBSCRIBED;
    }

    static final class Unsubscribed implements Subscription {
        @Override
        public void unsubscribe() {
            // deliberately ignored
        }

        @Override
        public boolean isUnsubscribed() {
            return true;
        }
    }
}
